const mongoose = require('mongoose')


const schema = mongoose.Schema({
  category: {
    type: mongoose.SchemaTypes.ObjectId,
    ref: 'Category'
  },
  price: {
    type: Number,
    default: 0
  },
  number: {
    type: Number,
    default: 0
  },
  pictures: {
    type: String
  },
  name: {
    type: String
  },
  intro: {
    type: String
  }
})

module.exports = mongoose.model('ServiceProduct', schema)